﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adminshenpi.aspx.cs" Inherits="lb_shenpi_adminshenpi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
.style36 {	font-size: 13px;
	color: #FFFFFF;
	font-weight: bold;
}
.style5 {color: #FFFFFF}
-->
</style>
<link href="../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style37 {color: #000000}
.style38 {color: #FF0000}
.style40 {font-size: 12px}
-->
</style>
</head>
<body>
<div align="center">  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="6" height="21"><img src="../img/bbs/leftlin1.gif" width="6" height="21"></td>
    <td width="936" bgcolor="#5AAE18"><div align="center"><span class="style5"><span class="style13 style5 style6"><span class="style36">审 批 列 表</span></span></span></div></td>
    <td width="6" height="21"><img src="../img/bbs/rightlin1.gif" width="6" height="21"></td>
  </tr>
</table>
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5EAE19">
    <tr>
      <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="6" colspan="6"></td>
          </tr>
        <tr>
          <td>&nbsp;</td>
          <td><strong>审批事由</strong></td>
          <td><div align="center"><strong>操　作</strong></div></td>
          <td><div align="left"><strong>状　态</strong></div></td>
          <td><div align="center"><strong>提交人</strong></div></td>
          <td width="24%"><div align="center"><strong>时 间</strong></div></td>
        </tr>
        <%
            //session 传入登陆的用户 
            
            COM.OA.Entity.users u =(COM.OA.Entity.users)Session["loginuser"];
            if (u == null)
            {
                this.Response.Write(string.Format(GetRedirect.REDIRECT,"../login.aspx"));
                this.Response.End();
            }
            string where = "ex_inceptid="+u.u_id;
            System.Collections.Generic.IList<COM.OA.Entity.examine> list =
                COM.OA.BLL.examineBLL.Select(where,true,true);

            foreach (COM.OA.Entity.examine ex in list)
            {
                COM.OA.Entity.users user = COM.OA.BLL.usersBLL.Select(ex.ex_u_id);
                COM.OA.Entity.employee emp = COM.OA.BLL.employeeBLL.Select(user.u_em_id);
                string state = "";
                string stateImg = "";
                switch (ex.ex_state)
                {
                    case 0: state = "等待受理"; stateImg = "../gxxz/img/sp/3.gif";
                        break;
                    case 1: state = "受理中"; stateImg = "../gxxz/img/sp/1.gif";
                        break;
                    case 2: state = "中止"; stateImg = "../gxxz/img/sp/3.gif";
                        break;
                    case 3: state = "终止"; stateImg = "../gxxz/img/sp/4.gif";
                        break;
                    case 4: state = "办结"; stateImg = "../images/gx/cs-1.gif";
                        break;

                }
         %>
        <tr bgcolor="#FFFFFF" onMouseOver = "this.style.backgroundColor = '#EEEEEE'" onMouseOut = "this.style.backgroundColor = ''">
            <td width="3%"><div align="center"><img src="../images/sp/icon1.gif" width="8" height="9"></div></td>
            <td width="45%"><a href="doshenpi.aspx?id=<%=ex.ex_id %>"><%=ex.ex_applycontent %></a></td>
            <td width="15%"><div align="center"><a href="banli.aspx?id=<%=ex.ex_id %>&name='start'">办理</a>&nbsp;<a href="stop.aspx?id=<%=ex.ex_id %>&name='stop'">中止</a>&nbsp;<a href="over.aspx?id=<%=ex.ex_id %>&name='over'">终止</a>&nbsp;<a href="done.aspx?id=<%=ex.ex_id %>&name='jie'">办结</a></div></td>
            <td width="8%">
              <div align="left">
		         
                <%=state %><img src="<%=stateImg %>" width="13" height="13">              
              </div></td>
            <td width="5%"><div align="center"><%=emp.em_name %></div></td>
            <td width="24%"><div align="center">
                
                  <span class="style37"><%=ex.ex_applytime %></span>
                
            </div></td>
        </tr>
        <%
            }
                 %>
      </table></td>
    </tr>
  </table>
</div>



<div align="center">
  
  <p>
    
  </p>
  <p><a href="javascript:history.go(-1)">返回</a> </p>
</div>
</body>
</html>